import java.math.BigInteger;
import java.util.Scanner;

public class Main {


    //平方差
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        BigInteger A = scan.nextBigInteger();
        BigInteger B = scan.nextBigInteger();
        System.out.println(A.multiply(A).subtract(B.multiply(B)));
    }


    public static void main2(String[] args) {
        Scanner sc = new Scanner(System.in);
        BigInteger A = sc.nextBigInteger();
        BigInteger B = sc.nextBigInteger();
        System.out.println(A.multiply(A).subtract(B.multiply(B)));
    }

    public static void main1(String[] args) {
        Scanner in = new Scanner(System.in);
        //在此输入您的代码...
        BigInteger A = in.nextBigInteger();
        BigInteger B = in.nextBigInteger();
        BigInteger A2 = A.multiply(A);
        BigInteger B2 = B.multiply(B);
        System.out.println(A2.subtract(B2));


        in.close();
    }
}
